import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/Bbiao/getList',
        method: 'get',
        params: query
    })
}
//分组列表
export function getfzList(query) {
    return request({
        url: '/Khfp/getList',
        method: 'get',
        params: query
    })
}

//标签列表
export function getbqList(query) {
    return request({
        url: '/Cdfp/getList',
        method: 'get',
        params: query
    })
}

//资源库列表

export function getZylist(query) {
    return request({
        url: '/Ziy/getList',
        method: 'get',
        params: query
    })
}
//添加任务
export function Addrw(data) {
    return request({
        url: '/Bbiao/rwzx',
        method: 'post',
        data
    })
}


export function fetchArticle(id) {
    return request({
        url: '/vue-element-admin/article/detail',
        method: 'get',
        params: { id }
    })
}

export function fetchPv(data) {
    return request({
        url: '/Logs/getList',
        method: 'post',
        data
    })
}

export function createArticle(data) {
    return request({
        url: '/Bbiao/getAdd',
        method: 'post',
        data
    })
}

export function updateArticle(data) {
    return request({
        url: '/Bbiao/getEdit',
        method: 'post',
        data
    })
}
export function getDel(data) {
    return request({
        url: '/Bbiao/getDel',
        method: 'post',
        data
    })
}
export function getrwzxlist(data) {
    return request({
        url: '/Bbiao/rwzxlist',
        method: 'post',
        data
    })
}

export function getadddzhrw(data) {
    return request({
        url: '/Bbiao/adddzhrw',
        method: 'post',
        data
    })
}


//在线的账号
export function getzhlist(data) {
    return request({
        url: '/Smsck/getList',
        method: 'post',
        data
    })
}
export function getAddAll(data) {
    return request({
        url: '/Bbiao/getAddAll',
        method: 'post',
        data
    })
}

